package org.bp.ioc.bean;

import java.util.HashMap;
import java.util.Map;

public class View {
    private String path;
    private Map<String,Object> model;

    public View(String path) {
        this.path = path;
        this.model = new HashMap<>();
    }
    public View addModel(String name,Object obj){
        model.put(name,obj);
        return this;
    }
    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public Map<String, Object> getModel() {
        return model;
    }

    public void setModel(Map<String, Object> model) {
        this.model = model;
    }
}
